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33L+yro53ITcHhl6u6hePyC/nU7Gl6ceV1j0KpzrDMbHWsuaYAv4513/uQIw8=';

const encrypt = new JSEncrypt();
encrypt.setPublicKey('-----BEGIN PUBLIC KEY-----' + PUBLIC_KEY + '-----END PUBLIC KEY-----');
encrypt.setPrivateKey('-----BEGIN PRIVATE KEY-----' + PRIVATE_KEY + '-----END PRIVATE KEY-----');

export default encrypt;
